import Mock from 'mockjs';
import nidtga from './data/nidtga';  // 机构列表
import request from "@/axios/request";
import store from "@/store";
// 设置拦截ajax请求的相应时间
Mock.setup({
    timeout: '200-600'
});

Mock.mock('/login', 'post' ,nidtga.login); // 登录
Mock.mock('/screen/node', 'post' ,nidtga.nodes); // 节点信息
Mock.mock('/screen/area/info', 'post' ,nidtga.nodesFlow); // 节点流量
Mock.mock('/screen/child/info', 'post' ,nidtga.nodeChildFlow);
Mock.mock('/user/lease6/list?limit=10000&offset=0&name', 'post' ,nidtga.online);
Mock.mock('/nodesFlowPacket', 'post' ,nidtga.nodesFlowPacket); // 节点流量
Mock.mock('/nodesAllFlow', 'post' ,nidtga.nodesAllFlow); // 节点流量
Mock.mock('/userTotal', 'post' ,nidtga.userTotal); //
Mock.mock('/screen/users/number', 'post' ,nidtga.usersCount); //
Mock.mock('/screen/fly_line', 'post' ,nidtga.flyLines); //

export default Mock